clear bgp neighbor counters

clear bgp neighbor [remoteaddr | all] counters

Description

Resets the BGP counters for one or all BGP neighbor sessions to zero.

Syntax Description

remoteaddr Specifies the IPv4 or IPv6 address of a specific BGP neighbor.
all Specifies that counters for all BGP neighbors should be reset.

Default

N/A.

Usage Guidelines

This command resets the following counters:
  • In-total-msgs
  • Out-total-msgs
  • In-updates
  • Out-updates
  • FsmTransitions

The command clear counters also resets all counter for all BGP neighbors. For BGP, the clearcounters command is equivalent to the following BGP command:

clear bgp neighbor all counters

This command applies to the current VR or VRF context.

Example

The following command resets the counters for the BGP neighbor at 10.20.30.55:

clear bgp neighbor 10.20.30.55 counters

History

This command was first available in ExtremeXOS 10.1.

Support for IPv6 was added in ExtremeXOS 12.6 BGP.

Platform Availability

This command is available on platforms that support the appropriate license. For complete information about software licensing, including how to obtain and upgrade your license and which licenses support the BGP feature, see the Switch Engine v33.1.1 Licensing Guide document.